﻿using Mes.Pendant.Role;
using Mes.Pendant.Role.Dto;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.Web.Controllers.RBAC
{
	public class RoleController : Controller
	{
		private readonly RoleIService _roleIService;

		public RoleController(RoleIService roleIService)
		{
			_roleIService = roleIService;
		}

		public IActionResult Index()
		{
			return View();
		}

		public async Task<List<RoleListDto>> GetRoleList()
		{
			var roleListDto = await _roleIService.GetRoleList();
			return roleListDto;
		}





	}
}
